from fdfs_client.client import Fdfs_client,get_tracker_conf

tracker_path = get_tracker_conf('client.conf')

client = Fdfs_client(tracker_path)

def read_file():
    with open(r'test.png','rb') as file:
        file_data = file.read()
        remote_fileid =client.upload_by_buffer(file_data,file_ext_name='png')
        print(remote_fileid)
def remove():
    client.delete_file(b'group1/M00/00/00/rB43hGaM_56AL4Y_AALqx_cGbaM139.png')
